package ms.maplestory.boot.client.character.quest.requirement;

public enum QuestStartRequirementType {

    QUEST(0),
    ITEM(1),
    JOB(2),
    MARRIAGE(3),
    MAX_LEVEL(4),
    MIN_STAT(5);

    private byte value;

    QuestStartRequirementType(int value) {
        this.value = (byte) value;
    }

    public byte getValue() {
        return value;
    }

    public static QuestStartRequirementType getQPRTByObj(Object o) {
        return o instanceof QuestStartCompletionRequirement ? QUEST :
                o instanceof QuestStartItemRequirement ? ITEM :
                        o instanceof QuestStartJobRequirement ? JOB :
                                o instanceof QuestStartMaxLevelRequirement ? MAX_LEVEL :
                                        o instanceof QuestStartMinStatRequirement ? MIN_STAT
                                                : null;
    }
}
